Platform Explorer / Nuxeo Platform 2021.7

Contribution org.nuxeo.ecm.collections.contentview--contentViews

This contribution is part of XML component org.nuxeo.ecm.collections.contentview inside nuxeo-platform-webapp-base-2021.7.jar /OSGI-INF/collection-contentviews-contrib.xml

Extension Point

Extension point contentViews of component ContentViewService.

Registration Order

8
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <contentView name="user_collection_contentview">
    
          <title>label.search.results</title>
          <translateTitle>true</translateTitle>
    
          <emptySentence>label.content.empty.search</emptySentence>
          <translateEmptySentence>true</translateEmptySentence>
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <whereClause docType="Document">
              <fixedPart>
                ecm:mixinType = 'Collection' AND ecm:mixinType !=
                'HiddenInNavigation'
                AND ecm:primaryType != 'Favorites'
                AND ecm:isVersion = 0 AND
                ecm:isTrashed = 0
              </fixedPart>
            </whereClause>
            <sort ascending="true" column="dc:title"/>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <searchLayout name="collections_default"/>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>only_one_cache</cacheKey>
          <cacheSize>1</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="collections_listing" showCSVExport="true" showSyndicationLinks="false" title="document_listing" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>COLLECTIONS_CURRENT_SELECTION</selectionList>
          <actions category="COLLECTIONS_CURRENT_SELECTION_LIST"/>
    
        </contentView>
  • <contentView name="collection_content_contentview">
    
          <title>label.search.results</title>
          <translateTitle>true</translateTitle>
    
          <emptySentence>label.content.empty.search</emptySentence>
          <translateEmptySentence>true</translateEmptySentence>
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <whereClause docType="AdvancedSearch">
              <predicate operator="FULLTEXT" parameter="ecm:fulltext">
                <field name="fulltext_all" schema="advanced_search"/>
              </predicate>
              <predicate operator="FULLTEXT" parameter="dc:title">
                <field name="title" schema="advanced_search"/>
              </predicate>
              <predicate operator="BETWEEN" parameter="dc:modified">
                <field name="modified_min" schema="advanced_search"/>
                <field name="modified_max" schema="advanced_search"/>
              </predicate>
              <fixedPart>
                ecm:mixinType != 'HiddenInNavigation' AND
                ecm:isTrashed = 0 AND
                collectionMember:collectionIds/* = ?
              </fixedPart>
            </whereClause>
            <parameter>#{currentDocument.id}</parameter>
            <sort ascending="true" column="dc:title"/>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <searchLayout filterDisplayType="quick" name="document_content_filter"/>
          <showFilterForm>true</showFilterForm>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
          </refresh>
          <cacheKey>only_one_cache</cacheKey>
          <cacheSize>1</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="document_listing_table" showCSVExport="true" showEditColumns="true" showSpreadsheet="true" title="document_listing" translateTitle="true"/>
            <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_listing_thumbnail" showEditRows="true" showSlideshow="true" title="document_thumbnail_listing" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>COLLECTION_CURRENT_SELECTION</selectionList>
          <actions category="COLLECTION_ACTION"/>
    
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <contentView name="user_collection_contentview">

      <title>label.search.results</title>
      <translateTitle>true</translateTitle>

      <emptySentence>label.content.empty.search</emptySentence>
      <translateEmptySentence>true</translateEmptySentence>

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <whereClause docType="Document">
          <fixedPart>
            ecm:mixinType = 'Collection' AND ecm:mixinType !=
            'HiddenInNavigation'
            AND ecm:primaryType != 'Favorites'
            AND ecm:isVersion = 0 AND
            ecm:isTrashed = 0
          </fixedPart>
        </whereClause>
        <sort ascending="true" column="dc:title"/>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <searchLayout name="collections_default"/>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>only_one_cache</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="collections_listing" showCSVExport="true" showSyndicationLinks="false" title="document_listing" translateTitle="true"/>
      </resultLayouts>

      <selectionList>COLLECTIONS_CURRENT_SELECTION</selectionList>
      <actions category="COLLECTIONS_CURRENT_SELECTION_LIST"/>

    </contentView>

    <contentView name="collection_content_contentview">

      <title>label.search.results</title>
      <translateTitle>true</translateTitle>

      <emptySentence>label.content.empty.search</emptySentence>
      <translateEmptySentence>true</translateEmptySentence>

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <whereClause docType="AdvancedSearch">
          <predicate operator="FULLTEXT" parameter="ecm:fulltext">
            <field name="fulltext_all" schema="advanced_search"/>
          </predicate>
          <predicate operator="FULLTEXT" parameter="dc:title">
            <field name="title" schema="advanced_search"/>
          </predicate>
          <predicate operator="BETWEEN" parameter="dc:modified">
            <field name="modified_min" schema="advanced_search"/>
            <field name="modified_max" schema="advanced_search"/>
          </predicate>
          <fixedPart>
            ecm:mixinType != 'HiddenInNavigation' AND
            ecm:isTrashed = 0 AND
            collectionMember:collectionIds/* = ?
          </fixedPart>
        </whereClause>
        <parameter>#{currentDocument.id}</parameter>
        <sort ascending="true" column="dc:title"/>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <searchLayout filterDisplayType="quick" name="document_content_filter"/>
      <showFilterForm>true</showFilterForm>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
      </refresh>
      <cacheKey>only_one_cache</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="document_listing_table" showCSVExport="true" showEditColumns="true" showSpreadsheet="true" title="document_listing" translateTitle="true"/>
        <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_listing_thumbnail" showEditRows="true" showSlideshow="true" title="document_thumbnail_listing" translateTitle="true"/>
      </resultLayouts>

      <selectionList>COLLECTION_CURRENT_SELECTION</selectionList>
      <actions category="COLLECTION_ACTION"/>

    </contentView>

  </extension>